﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web/Site.Master" AutoEventWireup="true"
    CodeBehind="AdminCompte.aspx.cs" Inherits="Ingebet.Web.AdminCompte" EnableEventValidation="true"
    Theme="Thème1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script language="javascript">
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="menu">
        <asp:Menu ID="Menu" Width="300px" runat="server" Orientation="Vertical" StaticEnableDefaultPopOutImage="False"
            OnMenuItemClick="Menu_MenuItemClick" DisappearAfter="2000" StaticDisplayLevels="2"
            StaticSubMenuIndent="10" Font-Names="Arial">
            <StaticMenuItemStyle BackColor="LightSteelBlue" ForeColor="Black" />
            <StaticHoverStyle BackColor="LightSkyBlue" />
            <DynamicMenuItemStyle BackColor="Black" ForeColor="Silver" />
            <DynamicHoverStyle BackColor="LightSkyBlue" ForeColor="Black" />
            <Items>
                <asp:MenuItem Text="Administration Comptes" Value="0"></asp:MenuItem>
                <asp:MenuItem Text="Rencontres Importés" Value="1"></asp:MenuItem>
                <asp:MenuItem Text="Rencontres Sans resultat" Value="2"></asp:MenuItem>
                <asp:MenuItem Text="Rencontres avec resultat" Value="3"></asp:MenuItem>
            </Items>
        </asp:Menu>
    </div>
    <div class="main">
        <asp:MultiView ID="MultiView" runat="server" ActiveViewIndex="0">
            <asp:View ID="Tab1" runat="server">
                <br />
                <asp:Label Text="Administation Compte : " runat="server" Style="margin-left: inherit" />
                <br />
                <br />
                <br />
                <asp:DataGrid ID="GridComptes" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CellPadding="3" AllowSorting="True" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
                    BorderWidth="1px" Width="100%" OnPageIndexChanged="GridComptes_PageIndexChanged">
                    <Columns>
                        <asp:BoundColumn DataField="Id" Visible="false"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Civilite" DataField="Civilite"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Nom" DataField="Nom"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Prenom" DataField="Prenom"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Email" DataField="Email"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Password" DataField="Password"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Points" DataField="Solde"></asp:BoundColumn>
                        <asp:TemplateColumn>
                            <HeaderStyle Width="100px"></HeaderStyle>
                            <ItemTemplate>
                                <asp:Button ID="btnModifier" runat="server" Text="Modifier" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id") %>'
                                    OnClick="btnModifierClick"></asp:Button>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn>
                            <HeaderStyle Width="100px"></HeaderStyle>
                            <ItemTemplate>
                                <asp:Button ID="btnSupprimer" runat="server" Text="Supprimer" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id") %>'
                                    OnClientClick="return confirm('Etes vous sûre de vouloir supprimer ce compte ?');"
                                    OnClick="btnSupprimerClick"></asp:Button>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <ItemStyle ForeColor="#000066" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" Mode="NumericPages" />
                    <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                </asp:DataGrid>
            </asp:View>
            <asp:View ID="Tab2" runat="server">
                <br />
                <asp:Label ID="Label1" Text="Rencontres importées : " runat="server" />
                <br />
                <br />
                <br />
                <asp:DataGrid ID="GridRencontresImportes" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CellPadding="3" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                    Width="100%" AllowSorting="True" OnItemCommand="GridRencontresImportes_ItemCommand"
                    OnPageIndexChanged="GridRencontresImportes_PageIndexChanged">
                    <Columns>
                        <asp:BoundColumn HeaderText="Competition" DataField="Competition"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Equipe1" DataField="Equipe1"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Equipe2" DataField="Equipe2"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Date" DataField="DateMatch"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Description" DataField="Description"></asp:BoundColumn>
                        <asp:ButtonColumn CommandName="select" Text="Enregistrer"></asp:ButtonColumn>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <ItemStyle ForeColor="#000066" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" Mode="NumericPages" />
                    <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                </asp:DataGrid>
            </asp:View>
            <asp:View ID="Tab3" runat="server">
                <br />
                <asp:Label ID="Label2" Text="Rencontres enregistrées sans resultat : " runat="server" />
                <br />
                <br />
                <br />
                <asp:DataGrid ID="GridRencontresEnregistres" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CellPadding="3" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                    Width="100%" AllowSorting="True" OnItemCommand="GridRencontresEnregistres_ItemCommand"
                    OnPageIndexChanged="GridRencontresEnregistres_PageIndexChanged">
                    <Columns>
                        <asp:BoundColumn DataField="RencontreID" Visible="false"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Competition" DataField="Competition"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Equipe1" DataField="Equipe1"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Equipe2" DataField="Equipe2"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Date" DataField="DateMatch" DataFormatString=""></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Gain" DataField="CoteGain"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Null" DataField="CoteEgalite"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Perte" DataField="CotePerte"></asp:BoundColumn>
                        <asp:ButtonColumn CommandName="select" Text="Definir Resultat"></asp:ButtonColumn>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <ItemStyle ForeColor="#000066" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" Mode="NumericPages" />
                    <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                </asp:DataGrid>
            </asp:View>
            <asp:View ID="Tab4" runat="server">
                <br />
                <asp:Label ID="Label3" Text="Rencontres avec resultat : " runat="server" />
                <br />
                <br />
                <br />
                <asp:DataGrid ID="GridRencontreResult" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CellPadding="3" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                    Width="100%" AllowSorting="True" OnItemCommand="GridRencontresEnregistres_ItemCommand"
                    OnPageIndexChanged="GridRencontresEnregistres_PageIndexChanged">
                    <Columns>
                        <asp:BoundColumn DataField="RencontreID" Visible="false"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Competition" DataField="Competition"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Equipe1" DataField="Equipe1"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Equipe2" DataField="Equipe2"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Date" DataField="DateMatch" DataFormatString=""></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Gain" DataField="CoteGain"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Null" DataField="CoteEgalite"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Perte" DataField="CotePerte"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="Score" DataField="Score"></asp:BoundColumn>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <ItemStyle ForeColor="#000066" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" Mode="NumericPages" />
                    <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                </asp:DataGrid>
            </asp:View>
        </asp:MultiView>
    </div>
</asp:Content>